.class public Lcom/nemustech/regina/MenuCare;
.super Ljava/lang/Object;
.source "MenuCare.java"


# static fields
.field private static final MENU_ADD:I = 0xb

.field private static final MENU_EDIT:I = 0xc

.field private static final MENU_GROUP_ID:I = 0x1

.field private static final MENU_REGINA_SETTINGS:I = 0xe

.field private static final MENU_SEARCH:I = 0x11

.field private static final MENU_SETTINGS:I = 0xd

.field private static final MENU_WALL_PAPER:I = 0x10

.field private static final MENU_WORKSPACES:I = 0xf

.field private static final TAG:Ljava/lang/String; = "MenuCare"


# instance fields
.field private mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;


# direct methods
.method public constructor <init>(Lcom/nemustech/regina/ReginaLauncher;)V
    .locals 0
    .parameter "reginaLauncher"

    .prologue
    .line 24
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 25
    iput-object p1, p0, Lcom/nemustech/regina/MenuCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    .line 26
    return-void
.end method


# virtual methods
.method public onCreateOptionsMenu(Landroid/view/Menu;)V
    .locals 6
    .parameter "menu"

    .prologue
    const v5, 0x1080049

    const/4 v4, 0x1

    const/4 v3, 0x0

    .line 29
    const/16 v1, 0xb

    const v2, 0x7f070010

    invoke-interface {p1, v4, v1, v3, v2}, Landroid/view/Menu;->add(IIII)Landroid/view/MenuItem;

    move-result-object v1

    const v2, 0x1080033

    invoke-interface {v1, v2}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 34
    const/16 v1, 0xf

    const v2, 0x7f070014

    invoke-interface {p1, v4, v1, v3, v2}, Landroid/view/Menu;->add(IIII)Landroid/view/MenuItem;

    move-result-object v1

    const v2, 0x1080042

    invoke-interface {v1, v2}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 37
    const/16 v1, 0x10

    const v2, 0x7f070015

    invoke-interface {p1, v4, v1, v3, v2}, Landroid/view/Menu;->add(IIII)Landroid/view/MenuItem;

    move-result-object v1

    const v2, 0x108003f

    invoke-interface {v1, v2}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 40
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.settings.SETTINGS"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 41
    .local v0, settings:Landroid/content/Intent;
    const/high16 v1, 0x1020

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 43
    const/16 v1, 0xd

    const v2, 0x7f070012

    invoke-interface {p1, v4, v1, v3, v2}, Landroid/view/Menu;->add(IIII)Landroid/view/MenuItem;

    move-result-object v1

    invoke-interface {v1, v5}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    move-result-object v1

    invoke-interface {v1, v0}, Landroid/view/MenuItem;->setIntent(Landroid/content/Intent;)Landroid/view/MenuItem;

    .line 46
    const/16 v1, 0x11

    const v2, 0x7f070016

    invoke-interface {p1, v4, v1, v3, v2}, Landroid/view/Menu;->add(IIII)Landroid/view/MenuItem;

    move-result-object v1

    const v2, 0x108004f

    invoke-interface {v1, v2}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 49
    const/16 v1, 0xe

    const v2, 0x7f070013

    invoke-interface {p1, v4, v1, v3, v2}, Landroid/view/Menu;->add(IIII)Landroid/view/MenuItem;

    move-result-object v1

    invoke-interface {v1, v5}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 51
    return-void
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)V
    .locals 5
    .parameter "item"

    .prologue
    const/4 v4, 0x1

    .line 57
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v1

    packed-switch v1, :pswitch_data_0

    .line 82
    :goto_0
    :pswitch_0
    return-void

    .line 59
    :pswitch_1
    iget-object v1, p0, Lcom/nemustech/regina/MenuCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v1, v4}, Lcom/nemustech/regina/ReginaLauncher;->showSelectDialog(I)V

    goto :goto_0

    .line 65
    :pswitch_2
    iget-object v1, p0, Lcom/nemustech/regina/MenuCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncher;->onSearchRequested()Z

    goto :goto_0

    .line 70
    :pswitch_3
    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    iget-object v2, p0, Lcom/nemustech/regina/MenuCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    const-class v3, Lcom/nemustech/regina/ReginaLauncherSettings;

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    move-result-object v0

    .line 71
    .local v0, intent:Landroid/content/Intent;
    const-string v1, "IsSecret"

    iget-object v2, p0, Lcom/nemustech/regina/MenuCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v2}, Lcom/nemustech/regina/ReginaLauncher;->isSecretMode()Z

    move-result v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 72
    iget-object v1, p0, Lcom/nemustech/regina/MenuCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v1, v0}, Lcom/nemustech/regina/ReginaLauncher;->startActivitySafely(Landroid/content/Intent;)V

    .line 73
    iget-object v1, p0, Lcom/nemustech/regina/MenuCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v1, v4}, Lcom/nemustech/regina/ReginaLauncher;->setSettingsCalled(Z)V

    goto :goto_0

    .line 76
    .end local v0           #intent:Landroid/content/Intent;
    :pswitch_4
    iget-object v1, p0, Lcom/nemustech/regina/MenuCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncher;->processWorkspaces()V

    goto :goto_0

    .line 79
    :pswitch_5
    iget-object v1, p0, Lcom/nemustech/regina/MenuCare;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    const/4 v2, 0x4

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ReginaLauncher;->showSelectDialog(I)V

    goto :goto_0

    .line 57
    nop

    :pswitch_data_0
    .packed-switch 0xb
        :pswitch_1
        :pswitch_0
        :pswitch_0
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_2
    .end packed-switch
.end method

.method public onPrepareOptionsMenu(Landroid/view/Menu;)V
    .locals 0
    .parameter "menu"

    .prologue
    .line 54
    return-void
.end method
